package com.demo.designmode.adapter.classadapter;

/**
 * @Author: jxm
 * @Description: 类适配器模式测试
 * @Date: 2023-12-13 9:51
 * @Version: 1.0
 */
public class Client {

    public static void main(String[] args) {
        Computer computer = new Computer();
        SDCard sdCard = new SDCardImpl();
        System.out.println(computer.readSD(sdCard));

        System.out.println("------------");

        SDAdapterTF adapter = new SDAdapterTF();
        System.out.println(computer.readSD(adapter));
    }
}
